﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NakedObjects;
using System.ComponentModel;

namespace FUFDomain.Warning
{
    [NotPersisted]
    public  abstract class Warning
    {

        [Hidden]
        public virtual int Id { get; set; }
        [Hidden]
        public virtual Object AcctionAccept{set; get;}
        [Hidden]
        public virtual Object AcctionCancel { set; get; }

        [DisplayName("Mensaje"),Disabled]
        public virtual String Message { get; set; }

        public virtual Object Accept() {
            AcceptAcction();
            return AcctionAccept;
        }

        public virtual Object Cancel()
        {
            CancelAcction();
            return AcctionCancel;
        }
        [Hidden]
        public abstract void AcceptAcction();
        [Hidden]
        public abstract void CancelAcction();

    }
}
